var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /** * Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ importPolyfill(`${_wordpressConfig.templateUrl}/scripts/pwp-notification.js`); let hasBeenPromptedForReload = false; const coreItemDetectors = [ /surmblog\/header.php$/i, /surmblog\/footer.php$/i, ]; _pubsubhub.subscribe('resource_update', msg => { const rsrc = new URL(msg.name); const isCoreItem = coreItemDetectors.some(d => d.test(rsrc.pathname)); const isCurrentItem = rsrc.pathname === new URL(location.href).pathname; if(isCoreItem || isCurrentItem) promptForReload(); }); function promptForReload() { if(hasBeenPromptedForReload) return; const prompt = document.createElement('pwp-notification'); prompt.innerHTML = ` The contents of this page have been updated. Please reload `; document.body.appendChild(prompt); customElements.whenDefined('pwp-notification').then(_ => prompt.show()); hasBeenPromptedForReload = true; } } /* FILE ARCHIVED ON 18:18:37 Oct 01, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 22:01:29 Aug 16, 2023. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 182.923 exclusion.robots: 0.07 exclusion.robots.policy: 0.059 cdx.remote: 0.062 esindex: 0.01 LoadShardBlock: 146.653 (3) PetaboxLoader3.datanode: 126.722 (4) load_resource: 58.818 PetaboxLoader3.resolve: 53.334 */